Current Location: Home> Function Categories> rad2deg

rad2deg

Convert radians to corresponding angles
Name:rad2deg
Category:math
Programming Language:php
One-line Description:Convert radians to angles.

Definition and usage

rad2deg() function converts the radians into angles.

Example

 <?php
$rad = M_PI ;
$deg = rad2deg ( $rad ) ;
echo " $rad radians is equal to $deg degrees" ;
?>

Try it yourself

grammar

 rad2deg ( radian_number )
parameter describe
radian_number Required. Specify the radian to be converted.

illustrate

This function converts radian_number from radians to angle.

Similar Functions
  • Get the pi value pi

    pi

    Getthepivalue
  • Returns exp(number) - 1, and can calculate the exact result even when the value of number is close to zero. expm1

    expm1

    Returnsexp(number)-1
  • Calculate the oblique length of a straight triangle hypot

    hypot

    Calculatetheobliquel
  • Round the division result intdiv

    intdiv

    Roundthedivisionresu
  • Tilt tan

    tan

    Tilt
  • Sine sin

    sin

    Sine
  • Returns the remainder of the floating point number of division fmod

    fmod

    Returnstheremaindero
  • Square root sqrt

    sqrt

    Squareroot
Popular Articles